package com.erp.remote.goods;

import com.erp.entity.goods.BrandCategory;
import com.erp.util.AjaxResult;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 商品品牌分类远程接口
 */
@RequestMapping("/brandCategory")
public interface GoodsBrandCategoryRemote {
    //商品品牌分类列表(对公司ID和名称进行查询)
    @GetMapping("/list")
    AjaxResult brandCategoryList(@RequestParam Map<String, Object> params);

    //商品品牌分类树(对公司ID和名称进行查询)
    @GetMapping("/tree")
    AjaxResult brandCategoryTree(@RequestParam Map<String, Object> params);

    //添加商品品牌分类，前端需根据实体封装好数据。
    @PostMapping("/add")
    AjaxResult addBrandCategory(@RequestBody BrandCategory brandCategory);

    //删除商品品牌分类
    @DeleteMapping("/del/{id}")
    AjaxResult deleteBrandCategory(@PathVariable("id") Integer id);

    @PostMapping("/edit")
    AjaxResult editBrandCategory(@RequestBody BrandCategory brandCategory);
}
